<!DOCTYPE html>
<html lang="en">
 
  <head>
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
    <title>Title</title>
  </head>
  <style>
    html,body{
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        background: rgb(156, 142, 142);
        display: flex;
        justify-content: center;
        align-items: center
    }
    h1, a{
        color: #fafafa;
        text-align: center;
    }
</style>
 
  <body>
    <span id="content">
      0￥uDVjA4emqb%/
    </span>
    <button id="copyBT">复制</button>
    <script>
      function copyArticle(event) {
        const range = document.createRange();
        range.selectNode(document.getElementById('content'));
 
        const selection = window.getSelection();
        if(selection.rangeCount > 0) selection.removeAllRanges();
        selection.addRange(range);
        document.execCommand('copy');
        alert("复制成功！");
      }
 
      document.getElementById('copyBT').addEventListener('click', copyArticle, false);
    </script>
  </body>
 
</html>